package pers.xuyong.strive.datastruct.mode.factory;

import pers.xuyong.strive.datastruct.mode.factory.product.AbstractHuman;

/**
 * 女娲
 *
 * @author billymac
 * @version 1.0
 * @date 17/6/28  下午10:41
 * @since JDK1.8
 */
public class NvWa extends AbstractHumanFactory {
    @Override
    public AbstractHuman createHuman(Class tClass) {
        AbstractHuman human = null;
        try {
            human = (AbstractHuman) tClass.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }

        return human;
    }
}
